import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

Vue.directive('focus', {
  inserted(el) {
    el.focus()
  },
})

Vue.directive('color', {
  inserted(el, arg) {
    console.log(arg.value);
    el.style.color = arg.value
  },
  update(el, arg) {
    el.style.color = arg.value
  },
})

new Vue({
  render: (h) => h(App),
}).$mount('#app')
